raar.gui.filetools
Class RAGFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by raar.gui.filetools.RAGFileFilter

public class RAGFileFilter
extends javax.swing.filechooser.FileFilter

File filter for use in our GUIs. Accept directories and files with a certain extension.


Constructor Summary
RAGFileFilter(java.lang.String ext)
          Construct and provide the extension we accept.
 
Method Summary
 boolean accept(java.io.File f)
          Is file acceptable?
 java.lang.String getDescription()
          The description of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAGFileFilter

public RAGFileFilter(java.lang.String ext)
Construct and provide the extension we accept.

Method Detail

accept

public boolean accept(java.io.File f)
Is file acceptable?

Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
The description of this filter.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter